home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / ease-3.5 / src / lexan.patch < prev    next >
Encoding:
Text File  |  1991-02-26  |  5.2 KB  |  214 lines

  1. *** /home/kreskin/u0/barnett/Src/ease/src/lexan.l    Wed Mar  1 15:43:53 1989
  2. --- lexan.l    Mon May  7 14:12:53 1990
  3. ***************
  4. *** 59,78 ****
  5.       static char linbuf[BUFSIZ], *pc = linbuf;
  6.       char c;
  7.   
  8.       /* initialize buffer: first call only */
  9.       if (*pc == '\0' && pc == linbuf) {
  10.           if (fgets(linbuf, BUFSIZ, yyin)==NULL)
  11.               return EOF;
  12. !                 if (linbuf[0] == '#' )
  13. !                     fprintf(yyout, "%s", linbuf);  /* echo input as comment */
  14. !                 else
  15. !                     fprintf(yyout, "# %s", linbuf);  /* echo input as comment */
  16.       }
  17.       c = *pc++;
  18.       if (c == '\n') {
  19.           pc = linbuf;
  20. --- 68,82 ----
  21.       static char linbuf[BUFSIZ], *pc = linbuf;
  22.       char c;
  23.   
  24.       /* initialize buffer: first call only */
  25.       if (*pc == '\0' && pc == linbuf) {
  26.           if (fgets(linbuf, BUFSIZ, yyin)==NULL)
  27.               return EOF;
  28. !         /* echo input as comment */
  29. !         if (EchoInputAsComments) {
  30. !             fprintf(yyout, "%s%s", (linbuf[0] == '#' ? "" : "# "), linbuf);
  31.           }
  32. +     }
  33.       c = *pc++;
  34.       if (c == '\n') {
  35.           pc = linbuf;
  36. ***************
  37. *** 79,90 ****
  38.           if (fgets(linbuf, BUFSIZ, yyin) == NULL)
  39.               *pc = EOF;
  40.           else
  41. !             /* echo input as comment except cpp comments */
  42. !                     if (linbuf[0] == '#' )
  43. !                         fprintf(yyout, "%s", linbuf);  /* echo input as comment */
  44. !                     else
  45. !                         fprintf(yyout, "# %s", linbuf);  /* echo input as comment */
  46.       }
  47.       return c;
  48.   }
  49.   
  50. --- 83,94 ----
  51.           if (fgets(linbuf, BUFSIZ, yyin) == NULL)
  52.               *pc = EOF;
  53.           else
  54. !             /* echo input as comment (except cpp comments) */
  55. !             if (EchoInputAsComments) {
  56. !                 fprintf(yyout, "%s%s",
  57. !                 (linbuf[0] == '#' ? "" : "# "), linbuf);
  58.               }
  59. +     }
  60.       return c;
  61.   }
  62.   
  63. ***************
  64. *** 103,109 ****
  65.       { "Path",        MPATH },
  66.       { "Recipient",        MRECIPIENT },
  67.       { "Sender",        MSENDER },
  68. -     { "asm",        ASM },
  69.       { "bind",        BIND },
  70.       { "canon",        CANON },
  71.       { "class",        CLASS },
  72. --- 107,112 ----
  73. ***************
  74. *** 112,121 ****
  75.       { "d_interactive",    DOPTI },
  76.       { "d_queue",        DOPTQ },
  77.       { "define",        DEFINE },
  78. -     { "eval",        EVAL },
  79.       { "f_addrw",        CCFLAG },
  80.       { "f_arpa",        AAFLAG },
  81. -     { "f_bsmtp",        BBFLAG },    /* IDA */
  82.       { "f_date",        DDFLAG },
  83.       { "f_dot",        XXFLAG },
  84.       { "f_escape",        EEFLAG },
  85. --- 115,122 ----
  86. ***************
  87. *** 125,136 ****
  88.       { "f_full",        XFLAG },
  89.       { "f_llimit",        LLFLAG },
  90.       { "f_locm",        LFLAG },
  91. -     { "f_mail11",        HHFLAG },
  92.       { "f_mesg",        MMFLAG },
  93.       { "f_mult",        MFLAG },
  94.       { "f_noreset",        SSFLAG },
  95.       { "f_noufrom",        NFLAG },
  96. -     { "f_relativize",    VVFLAG },
  97.       { "f_retsmtp",        PFLAG },
  98.       { "f_return",        PPFLAG },
  99.       { "f_rfrom",        RFLAG },
  100. --- 126,135 ----
  101. ***************
  102. *** 159,171 ****
  103.       { "match",        MATCH },
  104.       { "next",        NEXT },
  105.       { "o_alias",        AAOPT },
  106. -     { "o_aliasfile",    YYOPT },
  107.       { "o_bsub",        BBOPT },
  108.       { "o_checkpoint",    CCOPT },
  109.       { "o_delivery",        DOPT },
  110.       { "o_dmuid",        UOPT },
  111.       { "o_dnet",        NNOPT },
  112. -     { "o_envelope",        SLOPT },
  113.       { "o_ewait",        AOPT },
  114.       { "o_flog",        SSOPT },
  115.       { "o_fsmtp",        HHOPT },
  116. --- 158,168 ----
  117. ***************
  118. *** 174,183 ****
  119.       { "o_hformat",        OOPT },
  120.       { "o_loadnc",        XXOPT },
  121.       { "o_loadq",        XOPT },
  122. -     { "o_maxempty",        BOPT },
  123. -     { "o_maxhops",        HOPT },
  124.       { "o_newproc",        YYOPT },
  125. -     { "o_nfs",        RROPT },    /* SunOS 4.0 */
  126.       { "o_pmaster",        PPOPT },
  127.       { "o_prifactor",    ZOPT },
  128.       { "o_qdir",        QQOPT },
  129. --- 171,177 ----
  130. ***************
  131. *** 200,209 ****
  132.       { "o_wizpass",        WWOPT },
  133.       { "options",        OPTIONS },
  134.       { "precedence",        PRECEDENCE },
  135. -     { "quote",        QUOTE },
  136.       { "readclass",        READCLASS },
  137.       { "resolve",        RESOLVE },
  138. -     { "resolved",        RESOLVED },
  139.       { "retry",        RETRY },
  140.       { "return",        RETURN },
  141.       { "ruleset",        RULESET },
  142. --- 194,201 ----
  143. ***************
  144. *** 210,218 ****
  145.       { "trusted",        TRUSTED },
  146.       { "user",        USER },
  147.       { "while",        IF },
  148. -     { "ypalias",        YPALIAS },
  149. -     { "ypmap",        YPMAP },
  150. -     { "yppasswd",        YPPASSWD },
  151.   };
  152.   %}
  153.   
  154. --- 202,207 ----
  155. ***************
  156. *** 221,231 ****
  157.   
  158.   [ \t\f]+            ;     /* discard whitepsace  */
  159.   [\n]                Lcount++;
  160. ! ^\#[ \t]*[0-9]+[ \t]*\".*\"[ \t]*.*[\n]    {
  161. ! /*                    sscanf (yytext, "%*c%d%s", &Lcount, FNbuf); */
  162. !                             yymark();
  163.                       }
  164. ! [A-Za-z_][A-Za-z0-9_-]*        {
  165.                   register int l, h, m, r, c;
  166.   
  167.                   l = 0;
  168. --- 210,219 ----
  169.   
  170.   [ \t\f]+            ;     /* discard whitepsace  */
  171.   [\n]                Lcount++;
  172. ! ^\#[ \t]*[0-9]+[ \t]*\".*\"[ \t]*[\n]    {
  173. !                     sscanf (yytext, "%*c%d%s", &Lcount, FNbuf);
  174.                       }
  175. ! [A-Za-z][A-Za-z0-9_-]*        {
  176.                   register int l, h, m, r, c;
  177.   
  178.                   l = 0;
  179. ***************
  180. *** 292,305 ****
  181.                           INch = input ();
  182.                   }
  183.                   }
  184. - "/"                return (SLASH);
  185.   [\\]?.                {
  186.                   if (RMatch) {    /* in rulesets, return literal character */
  187.                       yylval.ival = (yytext[0] == '\\') ? yytext[1] : yytext[0];
  188.                       return (SEPCHAR);
  189.                   } else {
  190. !                     PrintError ("Illegal delimiter character: (octal code) \\%03o", *yytext);
  191.                   }
  192.                   }
  193.   %%
  194. --- 280,292 ----
  195.                           INch = input ();
  196.                   }
  197.                   }
  198.   [\\]?.                {
  199.                   if (RMatch) {    /* in rulesets, return literal character */
  200.                       yylval.ival = (yytext[0] == '\\') ? yytext[1] : yytext[0];
  201.                       return (SEPCHAR);
  202.                   } else {
  203. !                     ErrorReport ("Illegal delimiter character");
  204. !                     printf (": (octal code) \\%03o\n", *yytext);
  205.                   }
  206.                   }
  207.   %%
  208.